@class-prefix-selector: ~'adm-selector';

.@{class-prefix-selector} {
  --color: #f5f5f5;
  --checked-color: #e7f1ff;
  --text-color: var(--adm-color-text);
  --checked-text-color: var(--adm-color-primary);
  --border: none;
  --checked-border: none;
  --border-radius: 2px;
  --padding: 8px 16px;

  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;

  .adm-space.adm-space {
    --gap: 12px;
  }

  &-item {
    padding: var(--padding);
    position: relative;
    background-color: var(--color);
    border: var(--border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    opacity: 1;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    overflow: hidden;
    vertical-align: top;

    &-description {
      font-size: 13px;
      color: var(--adm-color-weak);
    }

    &-active,
    &-multiple-active {
      color: var(--checked-text-color);
      background-color: var(--checked-color);
      border: var(--checked-border);
    }

    .@{class-prefix-selector}-check-mark-wrapper {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 0;
      height: 0;
      border-top: solid 8px transparent;
      border-bottom: solid 8px var(--adm-color-primary);
      border-left: solid 10px transparent;
      border-right: solid 10px var(--adm-color-primary);
      > svg {
        position: absolute;
        left: 0;
        top: 0;
        height: 6px;
        width: 8px;
      }
    }

    &-disabled {
      cursor: not-allowed;
      opacity: 0.4;
    }
  }
}
